/**
 * Created by Administrator on 2017/4/17.
 */
//模拟类
function myClass(){}
myClass.prototype.say =function(){
    console.log('hello')
};
//类继承
function myClass2(){}
myClass2.prototype = new myClass();

var test =new myClass2();
test.say();

//复写
